package com.open.shitou.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.open.shitou.bean.Advertisement;

import java.util.List;

/**
 * Created by hailongqiu on 2018/2/26.
 */

public class HomeInfoAdapter extends BaseAdapter {

    public LayoutInflater mInflater;
    public List<Advertisement> mPubList;
    public Context mContext;

    public HomeInfoAdapter(final Context context,
                           final List<Advertisement> pubList) {
        mInflater = LayoutInflater.from(context);
        mPubList = pubList;
        mContext = context;
    }

    @Override
    public int getCount() {
        return mPubList.size();
    }

    @Override
    public Object getItem(int i) {
        return i;
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        return null;
    }

}
